package cn.silver.module.message.controller;


import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.message.bean.MessageBean;
import cn.silver.module.message.domain.MsgMessage;
import cn.silver.module.message.param.MessageParam;
import cn.silver.module.message.service.IMsgMessageService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 短消息Controller
 *
 * @author hb
 * @date 2022-12-12
 */

@RestController
@RequiredArgsConstructor
@Tag(name = "消息管理-消息推送")
@RequestMapping("/msg/message")
public class MsgMessageController extends BusController<IMsgMessageService, MsgMessage, MessageParam, MessageBean> {

    @Resource
    @Override
    public void setBaseService(IMsgMessageService baseService) {
        this.setCode("msg_message");
        this.setPermission("msg:message");
        this.setTitle("消息管理-消息推送管理");
        this.baseService = baseService;
    }
}
